<?php
/**
 * LG
 */
namespace Home\Controller;
use Think\Controller;
class DigitalController extends Controller{
    public function Digital(){
        $username = cookie('username');
        $this->assign('username',$username);
        $Pro = M('Pro');
        $sj = $Pro->where('cId=1')->order('rand()')->select();
        $this->assign('sj',$sj);
        $dn = $Pro->where('cId=4')->order('rand()')->select();
        $this->assign('dn',$dn);

        $this->display();
    }
}
?>